package br.com.dataphonebr.selectListener;

import android.widget.Spinner;
import br.com.dataphonebr.enumerator.IEnum;
import br.com.dataphonebr.util.EnumTranslator;


public class EnumCustomOnItemSelectedListener<T> extends CustomOnItemSelectedListener<T>{
	
	private void translate(T[] list){
		IEnum[] ie = (IEnum[])list;
		EnumTranslator.translate(ie, context);
	}
	
    public void createAdapter(T[] list, Spinner spinner){
    	translate(list);
    	super.createAdapter(list, spinner);
    }
	
}
